Prompt My Repo VSCode extension
📌 Overview
Prompt My Repo is a VS Code extension that simplifies interactions with Large Language Models (LLMs) by packaging codebases into structured text formats. Ideal for:
- Generating context-aware documentation
- Debugging complex codebases
- Creating reproducible LLM prompts
Simply define files/directories in a template, and the extension automatically:
- Copies specified content with directory structure
- Formats output with relative paths
- Saves results to your clipboard
🌟 Key Features
Category | Details |
---|---|
Core Functionality | Multi-file aggregation, template-based selection, structure preservation |
Advanced Features | Recursive directory search (* syntax), smart clipboard integration, VS Code native integration |
🛠 Technical Highlights
- Language: TypeScript (v4.9.5)
- Core Architecture:
- VS Code API integration for file system access
- Recursive directory traversal algorithm
- Clipboard module with error handling
- Development Approach:
- LLM-assisted code optimization
- Semantic versioning
- Automated marketplace publishing
🚀 Get Started
- Install from VS Code Marketplace
- Create
.prompt-my-repo
template file - Run command
Prompt My Repo: Generate Output
# Example .prompt-my-repo template
src/utils/*
config.json
README.md
📂 Repository Structure
prompt-my-repo/
├── src/
│ ├── extension.ts # Core logic
│ └── templateParser.ts # Template processor
├── package.json # Extension manifest
└── .prompt-my-repo # Sample template